ip_block

Configuration for This collection holds private ip block information. resource.

Read/write properties

longitude<Double>

longitude.

description<String>

Description about Ip Block.
Maximum length = 256

end_ip_num<Double>

end_ip_num.

region_code<String>

region_code.
Maximum length = 16

name<String>

name.
Minimum length = 1
Maximum length = 256

country_code<String>

country_code.
Maximum length = 256

city<String>

city.
Maximum length = 256

id<String>

Id is IP block name.
Maximum length = 256

latitude<Double>

latitude.

start_ip_num<Double>

start_ip_num.

start_ip<String>

start_ip.

custom_region<Boolean>

custom_region.

end_ip<String>

end_ip.

country<String>

country.
Maximum length = 256

region<String>

region.
Maximum length = 256

custom_country<Boolean>

custom_country.

custom_city<Boolean>

custom_city.

Read only properties

tenant_id<String>

Tenant Id.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

updateaddget (all)getdelete

update

URL:https://<MGMT-IP>/nitro/v2/config/ip_block/id_value<String>

HTTPS Method:PUT

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"ip_block":{
      "id":<String_value>,
      "name":<String_value>,
      "end_ip_num":<Double_value>,
      "country_code":<String_value>,
      "end_ip":<String_value>,
      "region_code":<String_value>,
      "city":<String_value>,
      "longitude":<Double_value>,
      "region":<String_value>,
      "custom_city":<Boolean_value>,
      "start_ip_num":<Double_value>,
      "description":<String_value>,
      "custom_country":<Boolean_value>,
      "country":<String_value>,
      "custom_region":<Boolean_value>,
      "latitude":<Double_value>,
      "start_ip":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ip_block":[{
      "longitude":<Double_value>,
      "description":<String_value>,
      "end_ip_num":<Double_value>,
      "region_code":<String_value>,
      "name":<String_value>,
      "country_code":<String_value>,
      "tenant_id":<String_value>,
      "city":<String_value>,
      "id":<String_value>,
      "latitude":<Double_value>,
      "start_ip_num":<Double_value>,
      "start_ip":<String_value>,
      "custom_region":<Boolean_value>,
      "end_ip":<String_value>,
      "country":<String_value>,
      "region":<String_value>,
      "custom_country":<Boolean_value>,
      "custom_city":<Boolean_value>}]}

add

URL:https://<MGMT-IP>/nitro/v2/config/ip_block?onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"ip_block": {
      "city":<String_value>,
      "end_ip":<String_value>,
      "region_code":<String_value>,
      "region":<String_value>,
      "id":<String_value>,
      "longitude":<Double_value>,
      "name":<String_value>,
      "end_ip_num":<Double_value>,
      "country_code":<String_value>,
      "latitude":<Double_value>,
      "custom_region":<Boolean_value>,
      "start_ip":<String_value>,
      "custom_city":<Boolean_value>,
      "start_ip_num":<Double_value>,
      "custom_country":<Boolean_value>,
      "country":<String_value>,
      "description":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ip_block":[{
      "longitude":<Double_value>,
      "description":<String_value>,
      "end_ip_num":<Double_value>,
      "region_code":<String_value>,
      "name":<String_value>,
      "country_code":<String_value>,
      "tenant_id":<String_value>,
      "city":<String_value>,
      "id":<String_value>,
      "latitude":<Double_value>,
      "start_ip_num":<Double_value>,
      "start_ip":<String_value>,
      "custom_region":<Boolean_value>,
      "end_ip":<String_value>,
      "country":<String_value>,
      "region":<String_value>,
      "custom_country":<Boolean_value>,
      "custom_city":<Boolean_value>}]}

get (all)

URL:https://<MGMT-IP>/nitro/v2/config/ip_block

Query-parameters:

filter

https://<MGMT-IP>/nitro/v2/config/ip_block?filter=property-name1:property-value1,property-name2:property-value2

Use this query-parameter to get the filtered set of ip_block resources configured on the system. You can set a filter on any property of the resource.

pagesize=#no&pageno=#no

https://<MGMT-IP>/nitro/v2/config/ip_block?pagesize=#no&pageno=#no

Use this query-parameter to get the ip_block resources in chunks.

count

https://<MGMT-IP>/nitro/v2/config/ip_block?count=yes

Use this query-parameter to get the count of ip_block resources.

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ip_block":[{
      "longitude":<Double_value>,
      "description":<String_value>,
      "end_ip_num":<Double_value>,
      "region_code":<String_value>,
      "name":<String_value>,
      "country_code":<String_value>,
      "tenant_id":<String_value>,
      "city":<String_value>,
      "id":<String_value>,
      "latitude":<Double_value>,
      "start_ip_num":<Double_value>,
      "start_ip":<String_value>,
      "custom_region":<Boolean_value>,
      "end_ip":<String_value>,
      "country":<String_value>,
      "region":<String_value>,
      "custom_country":<Boolean_value>,
      "custom_city":<Boolean_value>}]}

get

URL:https://<MGMT-IP>/nitro/v2/config/ip_block/id_value<String>

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ip_block":[{
      "longitude":<Double_value>,
      "description":<String_value>,
      "end_ip_num":<Double_value>,
      "region_code":<String_value>,
      "name":<String_value>,
      "country_code":<String_value>,
      "tenant_id":<String_value>,
      "city":<String_value>,
      "id":<String_value>,
      "latitude":<Double_value>,
      "start_ip_num":<Double_value>,
      "start_ip":<String_value>,
      "custom_region":<Boolean_value>,
      "end_ip":<String_value>,
      "country":<String_value>,
      "region":<String_value>,
      "custom_country":<Boolean_value>,
      "custom_city":<Boolean_value>}]}

delete

URL:https://<MGMT-IP>/nitro/v2/config/ip_block/id_value<String>

HTTPS Method:DELETE

Request Headers:

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value> }